<div class="ctrinhs view">
<h2><?php  __('Ctrinh');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ctrinh['Ctrinh']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Chudaut'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($ctrinh['Chudaut']['id'], array('controller' => 'chudauts', 'action' => 'view', $ctrinh['Chudaut']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dvthicong'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($ctrinh['Dvthicong']['id'], array('controller' => 'dvthicongs', 'action' => 'view', $ctrinh['Dvthicong']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Hthucdaut'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($ctrinh['Hthucdaut']['id'], array('controller' => 'hthucdauts', 'action' => 'view', $ctrinh['Hthucdaut']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Hangmuc'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($ctrinh['Hangmuc']['id'], array('controller' => 'hangmucs', 'action' => 'view', $ctrinh['Hangmuc']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tenctrinh'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ctrinh['Ctrinh']['tenctrinh']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tiendo'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ctrinh['Ctrinh']['tiendo']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ddiemxd'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ctrinh['Ctrinh']['ddiemxd']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ngaybd'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ctrinh['Ctrinh']['ngaybd']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Ctrinh', true), array('action' => 'edit', $ctrinh['Ctrinh']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Ctrinh', true), array('action' => 'delete', $ctrinh['Ctrinh']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ctrinh['Ctrinh']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Ctrinhs', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ctrinh', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Chudauts', true), array('controller' => 'chudauts', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Chudaut', true), array('controller' => 'chudauts', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Dvthicongs', true), array('controller' => 'dvthicongs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Dvthicong', true), array('controller' => 'dvthicongs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Hthucdauts', true), array('controller' => 'hthucdauts', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Hthucdaut', true), array('controller' => 'hthucdauts', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Hangmucs', true), array('controller' => 'hangmucs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Hangmuc', true), array('controller' => 'hangmucs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Cgtrinhthuyetminhs', true), array('controller' => 'cgtrinhthuyetminhs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Cgtrinhthuyetminh', true), array('controller' => 'cgtrinhthuyetminhs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ctrinhbbs', true), array('controller' => 'ctrinhbbs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ctrinhbb', true), array('controller' => 'ctrinhbbs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ps', true), array('controller' => 'ps', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New P', true), array('controller' => 'ps', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Quyetdinhs', true), array('controller' => 'quyetdinhs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Quyetdinh', true), array('controller' => 'quyetdinhs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Tiens', true), array('controller' => 'tiens', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Tien', true), array('controller' => 'tiens', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Cgtrinhthuyetminhs');?></h3>
	<?php if (!empty($ctrinh['Cgtrinhthuyetminh'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Ctrinh Id'); ?></th>
		<th><?php __('Thuyetminh Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($ctrinh['Cgtrinhthuyetminh'] as $cgtrinhthuyetminh):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $cgtrinhthuyetminh['id'];?></td>
			<td><?php echo $cgtrinhthuyetminh['ctrinh_id'];?></td>
			<td><?php echo $cgtrinhthuyetminh['thuyetminh_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'cgtrinhthuyetminhs', 'action' => 'view', $cgtrinhthuyetminh['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'cgtrinhthuyetminhs', 'action' => 'edit', $cgtrinhthuyetminh['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'cgtrinhthuyetminhs', 'action' => 'delete', $cgtrinhthuyetminh['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $cgtrinhthuyetminh['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Cgtrinhthuyetminh', true), array('controller' => 'cgtrinhthuyetminhs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Ctrinhbbs');?></h3>
	<?php if (!empty($ctrinh['Ctrinhbb'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Ctrinh Id'); ?></th>
		<th><?php __('Bb Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($ctrinh['Ctrinhbb'] as $ctrinhbb):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $ctrinhbb['id'];?></td>
			<td><?php echo $ctrinhbb['ctrinh_id'];?></td>
			<td><?php echo $ctrinhbb['bb_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'ctrinhbbs', 'action' => 'view', $ctrinhbb['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'ctrinhbbs', 'action' => 'edit', $ctrinhbb['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'ctrinhbbs', 'action' => 'delete', $ctrinhbb['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ctrinhbb['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Ctrinhbb', true), array('controller' => 'ctrinhbbs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Ps');?></h3>
	<?php if (!empty($ctrinh['P'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Ctrinh Id'); ?></th>
		<th><?php __('Tenphieu'); ?></th>
		<th><?php __('Ngaylap'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($ctrinh['P'] as $p):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $p['id'];?></td>
			<td><?php echo $p['ctrinh_id'];?></td>
			<td><?php echo $p['tenphieu'];?></td>
			<td><?php echo $p['ngaylap'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'ps', 'action' => 'view', $p['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'ps', 'action' => 'edit', $p['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'ps', 'action' => 'delete', $p['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $p['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New P', true), array('controller' => 'ps', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Quyetdinhs');?></h3>
	<?php if (!empty($ctrinh['Quyetdinh'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Ctrinh Id'); ?></th>
		<th><?php __('Noidung'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($ctrinh['Quyetdinh'] as $quyetdinh):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $quyetdinh['id'];?></td>
			<td><?php echo $quyetdinh['ctrinh_id'];?></td>
			<td><?php echo $quyetdinh['noidung'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'quyetdinhs', 'action' => 'view', $quyetdinh['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'quyetdinhs', 'action' => 'edit', $quyetdinh['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'quyetdinhs', 'action' => 'delete', $quyetdinh['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quyetdinh['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Quyetdinh', true), array('controller' => 'quyetdinhs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Tiens');?></h3>
	<?php if (!empty($ctrinh['Tien'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Ctrinh Id'); ?></th>
		<th><?php __('Nguonvon Id'); ?></th>
		<th><?php __('Sotienvon'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($ctrinh['Tien'] as $tien):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $tien['id'];?></td>
			<td><?php echo $tien['ctrinh_id'];?></td>
			<td><?php echo $tien['nguonvon_id'];?></td>
			<td><?php echo $tien['sotienvon'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'tiens', 'action' => 'view', $tien['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'tiens', 'action' => 'edit', $tien['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'tiens', 'action' => 'delete', $tien['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $tien['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Tien', true), array('controller' => 'tiens', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
